-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#2320: simulate_replay fails to link related to dumpStack #2332
#2320: simulate_replay fails to link related to dumpStack #2332
Conversation
45635fa
to
d463c84
Compare
Pipelines resultsPR tests (clang-13, alpine, mpich) Build for c77ba38 (2024-08-06 14:28:51 UTC)
PR tests (clang-9, ubuntu, mpich) Build for c77ba38 (2024-08-06 14:28:51 UTC)
PR tests (gcc-8, ubuntu, mpich, address sanitizer) Build for c77ba38 (2024-08-06 14:28:51 UTC)
PR tests (gcc-9, ubuntu, mpich, zoltan, json schema test) Build for c77ba38 (2024-08-06 14:28:51 UTC)
PR tests (clang-12, ubuntu, mpich) Build for c77ba38 (2024-08-06 14:28:51 UTC)
PR tests (gcc-10, ubuntu, openmpi, no LB) Build for c77ba38 (2024-08-06 14:28:51 UTC)
PR tests (clang-13, ubuntu, mpich) Build for c77ba38 (2024-08-06 14:28:51 UTC)
PR tests (intel icpx, ubuntu, mpich, verbose) Build for c77ba38 (2024-08-06 14:28:51 UTC)
PR tests (clang-14, ubuntu, mpich, verbose) Build for c77ba38 (2024-08-06 14:28:51 UTC)
PR tests (clang-11, ubuntu, mpich) Build for c77ba38 (2024-08-06 14:28:51 UTC)
PR tests (gcc-12, ubuntu, mpich, verbose, kokkos) Build for c77ba38 (2024-08-06 14:28:51 UTC)
PR tests (clang-10, ubuntu, mpich) Build for c77ba38 (2024-08-06 14:28:51 UTC)
PR tests (gcc-11, ubuntu, mpich, trace runtime, coverage) Build for c77ba38 (2024-08-06 14:28:51 UTC)
PR tests (nvidia cuda 11.2, gcc-9, ubuntu, mpich) Build for c77ba38 (2024-08-06 14:28:51 UTC)
PR tests (nvidia cuda 12.2.0, gcc-9, ubuntu, mpich, verbose) Build for c77ba38 (2024-08-06 14:28:51 UTC)
PR tests (intel icpc, ubuntu, mpich) Build for c77ba38 (2024-08-06 14:28:51 UTC)
|
ded131d
to
f958f15
Compare
@nlslatt I've reworked I deleted the previous version and then wrote a new one loosely following the logic from CMake's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Were you able to test the latest changes?
@nlslatt Yes, I just tested this morning and everything is working properly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Fixes #2320
Problem
The issue was that there were two versions of libunwind available, and we were trying to link with the wrong one.
Solution
I've added a
Findlibunwind.cmake
module so we can usefind_package(libunwind)
instead ofcheck_include_file
.This gives us more control over which libunwind is found. Specifically, we can provide
HINTS
that point to the desiredlibunwind
installation (usually, we want the one installed in/usr
)libunwind_ROOT_DIR
CMake variable that users can optionally provide during configuration. (This directory becomes theHINT
passed tofind_package
)libunwind
isn't found in the suggested directory, it searches using CMake's default path instead.